// 云函数入口文件
const cloud = require('wx-server-sdk')
const got = require('got'); 
cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  event.submitData.WEBJSESSIONID=event.WEBJSESSIONID;
  event.submitData.token=event.token;
  let DailyForm=event.submitData;
  const response = await got(event.url, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
   
    body:JSON.stringify(DailyForm)
  })
  debugger
  return response.body;
}